package org.jeecg.modules.app.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.jeecg.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 菜品信息
 * @Author: jeecg-boot
 * @Date:   2022-06-12
 * @Version: V1.0
 */
@Data
@TableName("food")
@ApiModel(value="food对象", description="菜品信息")
public class Food implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**菜品图片*/
	@Excel(name = "菜品图片", width = 15)
    @ApiModelProperty(value = "菜品图片")
    private java.lang.String icon;
	/**菜品名称*/
	@Excel(name = "菜品名称", width = 15)
    @ApiModelProperty(value = "菜品名称")
    private java.lang.String name;
	/**菜品描述*/
	@Excel(name = "菜品描述", width = 15)
    @ApiModelProperty(value = "菜品描述")
    private java.lang.String description;
	/**月售*/
	@Excel(name = "月售", width = 15)
    @ApiModelProperty(value = "月售")
    private java.lang.Integer sellCount;
	/**好评率*/
	@Excel(name = "好评率", width = 15)
    @ApiModelProperty(value = "好评率")
    private java.lang.Double rating;
	/**原价*/
	@Excel(name = "原价", width = 15)
    @ApiModelProperty(value = "原价")
    private java.lang.Double oldPrice;
	/**现价*/
	@Excel(name = "现价", width = 15)
    @ApiModelProperty(value = "现价")
    private java.lang.Double price;
	/**状态*/
	@Excel(name = "状态", width = 15)
    @Dict(dicCode = "food_status")
    @ApiModelProperty(value = "状态")
    private java.lang.String status;
	/**商品种类id*/
    @ApiModelProperty(value = "商品种类id")
    private java.lang.String foodCategoryId;


    @TableField(exist = false)
    private java.lang.Integer num = 0;

    @TableField(exist = false)
    private java.lang.String foodId;
}
